package com.crm.dao.mapper.customMapper.csd;

import com.crm.model.vo.csd.customerManager.ContractAndOrderVO;
import com.crm.model.vo.customerContractManager.CustomerContractVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yincuimei
 * @Date 2021/8/26 14:58
 * (客服部)合同&订单
 */
public interface ContractAndOrderMapper {

    /**
     * 客户列表》查看》合同列表(合同为主)
     * @param sortOrder  --排序
     * @return
     */
    List<ContractAndOrderVO> selectContractVOList(@Param("customerId") String customerId,@Param("sortOrder") String sortOrder);

    /**
     * 客户列表》查看》合同列表(订单为主)
     * @param sortOrder  --排序
     * @return
     */
    List<ContractAndOrderVO> selectOrderVOList(@Param("customerId") String customerId,@Param("sortOrder") String sortOrder);

    Boolean addCustomerContract(@Param("customerContractVO") CustomerContractVO customerContractVO);

    Long getUserNewOrder(@Param("yearMonth") String dateStr, @Param("accountId") String accountId);
}
